package fristphase.day9_06.mysubmarinegame;

import javax.swing.*;

public class MineSubmarine extends SeaObject implements EnemyLife{
    MineSubmarine(){
        super(60,19);
    }
    public void move(){
        x += speed;
    }
    public ImageIcon getImage(){
        return Images.mineSubmarine;
    }
    public Mine shootMine(){
        return new Mine(x+width,this.y);
    }
    public int getLife(){
        return 1;
    }
}
